﻿using System;
using SilverlightViewport.Common.Interop;

namespace SilverlightViewport.Common
{
    internal class SilverlightPropertyBag : IPropertyBag
    {
        #region IPropertyBag Members

        public int Read(string pszPropName, out object pVar, IntPtr pErrorLog)
        {
            pVar = 0;

            if (pszPropName == "Windowless")
                pVar = -1;

            if (pszPropName == "MaxFramerate")
                pVar = 60;

            return 0;
        }

        public int Write(string pszPropName, ref object pVar)
        {
            return -1;
        }

        #endregion
    }
}
